package com.huayue.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayue.dao.BaseDao;
import com.huayue.dao.WebInfoDao;
import com.huayue.entity.WebInfo;

/**
 * 网站基本信息
 */
@Service
public class WebInfoService extends BaseService<WebInfo> {

    @Autowired
    WebInfoDao dao;

    @Override
    public BaseDao<WebInfo> getDao() {
        return dao;
    }

    /**
     * 修改网站Logo 传入id和Logo的地址
     *
     * @param webInfo
     * @return
     */
    public int updateIcon(WebInfo webInfo) {
        return dao.updateIcon(webInfo);
    }
}
